<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../common/taglibs.jsp"%>
<%@ include file="../user/super_authority.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>广东省网上办事大厅 - 珠海分厅 - 网上办事</title>
		<meta content="text/html; charset=utf-8" http-equiv=Content-Type/>
		<meta name=description content=广东省网上办事大厅-珠海分厅/>
		<meta name=keywords
			content="珠海，投资申请，项目审批，商机，珠海人民政府，政民互动,效能监察,投资审批,网上办事 "/>
		<link href="../css/common.css" rel="stylesheet" type="text/css" />
		<link href="../static/css/wsbs.css" rel="stylesheet" type="text/css" />
		<link href="../static/css/jquery-ui-1.8.2.custom.css" rel="stylesheet" type="text/css" media="screen" />
		<link href="../static/css/ui.jqgrid.css" rel="stylesheet" type="text/css" media="screen" />
		<link href="../static/css/ui.jqgrid.modify.jypt.css" rel="stylesheet" type="text/css" media="screen" />
		<script src="../js/jquery-1.9.0.min.js" type="text/javascript"></script>
		<script src="../js/i18n/grid.locale-cn.js" type="text/javascript"></script>
		<script src="../js/jquery.jqGrid.min.js" type="text/javascript"></script>
		<script src="../js/commonInChildPage.js" type=text/javascript></script>
		<!--[if IE 6]>
			<script src="/js/DD_belatedPNG.js" type="text/javascript"></script>
			    <script type="text/javascript">
			        DD_belatedPNG.fix('.png');
			</script>
		<![endif]-->
		<meta name=GENERATOR content="MSHTML 8.00.6001.23501"/>
	</head>
	<body>
		<jsp:include page="../include/head.jsp" />
		<div class=position>
			<strong>
				<table id=wypy border=0 cellSpacing=0 cellPadding=0 width=310>
					<tbody>
						<tr>
							<td class=xinxin_font height=20 vAlign=bottom width=170 align=right>
								本窗口服务星级评定：
							</td>
							<td onmouseover=rate(this,event) vAlign=center width=140
								align=left>
								<img title=很烂 src="../images/star_2.png" width=20/>
								<img title=一般 src="../images/star_2.png" width=20/>
								<img title=还好 src="../images/star_2.png" width=20/>
								<img title=较好 src="../images/star_2.png" width=20/>
								<img title=很好 src="../images/star_2.png" width=20/>
							</td>
						</tr>
					</tbody>
				</table>您现在的位置：</strong>
				<a href="http://wsbs.zhzw.gov.cn/">首 页</a> &gt;
				<a href="http://wsbs.zhzw.gov.cn/wsbs/">网上办事</a> &gt;
				<a href="../index.do">公共资源交易大厅</a>&gt;
				<a href="../login.do">监管平台</a>&gt;
				角色管理
		</div>
		<div class=cl></div>
		<div class="main t10 clearfix">

			<!-- left -->
			<div class="main_l" style="height:403px " >
				<div class="left_nav">
					<div class="left_nav_tit">
						<a href="#">监管平台</a>
					</div>
						<div class="bar_list">
						<h5>
							<span>用户信息</span>
						</h5>
						<ul id="ChildMenu1">
							<li >
								<a href="jgpt_user_list.do" class="nobj">用户管理</a>
							</li>
							<li class="current">
								<a href="jgpt_role_list.do" class="nobj">角色管理</a>
							</li>
							<li >
								<a href="jgpt_menu_list.do" class="nobj">菜单管理</a>
							</li>
						</ul>
					</div>
					
				</div>
				<div class="clear"></div>

			</div>
			<!-- left end -->
			<!-- right -->
			<div class="main_r" style="padding-top:0px">
				<div class="right_box">
					<div class="content-box" style="width:800px;height:410px;margin-bottom:10px">
					<div class="content-box_tit">角色管理</div>
					<form method="get" action="jgpt_role_add.do" >
						<div class="rightbox_tit"><input type="submit" name="Submit2" value="新增" class="input_button_small" /></div>
					</form>
					<div>					
						<table id="projectlist"></table><div id="pprojectlist"></div>
					</div>
				</div>
			</div>
		</div>
		<div class=cb></div>
		<jsp:include page="../include/bottom.jsp" />
		<script type="text/javascript">
		jQuery("#projectlist").jqGrid({
			datatype: "json",
			url:"jgpt_role_data.do",
			jsonReader : {  
		        root:"result",  
		        page: "currentPage",  
		        total: "pageCount",  
		        records: "totalCount"  
		    },  
			height: 'auto',
			width:800,
			rowNum: 10,
			rowList:[5,10,15,20,25,30],
		   	colNames:['角色名称','菜单名称','操作','ID'],
		   	colModel:[
		   		{name:'roleName',index:'roleName', width:200,align:"center",sortable:false },
		   		{name:'roleMeun',index:'roleMeun', width:485,align:"center",sortable:false},
		   		{name:'operation',index:'operation', width:100,align:"center",sortable:false},
		   		{name:'id',index:'id', width:59,align:"center",sortable:false,hidden:true},	
		   	],
		   	pager: "#pprojectlist",
		   	viewrecords: true,
		   	sortname: 'id',
		   	shrinkToFit:false, 
		   	grouping:true
		});
	
		function formatOper(cellvalue, options, rowObject){
			if(cellvalue == ""){
			
			}else if(cellvalue == ""){
			
			}else  if(cellvalue == ""){
			
			}				
			var returnStr = "<a href='zbgs_jsgc_detail.do?id="+rowObject.id+"' target='_blank'>";
			returnStr +=  ""+"修改" + "</a>";
			return returnStr;
		}
	
	 	$(document).ready(function () {
		        $("#searchButton").click(function () {
		            jQuery("#projectlist").jqGrid()
		                .setGridParam({
		                    postData: { noOrName: function () { return encodeURI($("#noOrName").val()); } } 
		                    }).trigger("reloadGrid");
		        });
		    });
		</script>		
	</body>
</html>